package com.service;

import com.pojo.RoomType;
import com.vo.RoomTypeVo;

import java.util.List;

/**
 * @author mornd
 * @date 2020/11/24 - 11:01
 */
public interface RoomTypeService {
    /**
     * 查询房型列表
     * @param roomTypeVo
     * @return
     */
    List<RoomType> findRoomTypeList(RoomTypeVo roomTypeVo);

    /**
     * 添加房型
     * @param roomType
     * @return
     */
    int addRoomType(RoomType roomType);

    /**
     * 修改房型
     * @param roomType
     * @return
     */
    int updateRoomType(RoomType roomType);

    /**
     * 根据房型id查询房间数量
     * @param roomTypeId
     * @return
     */
    int getRoomCount(Integer roomTypeId);

    /**
     * 删除房型
     * @param roomTypeId
     * @return
     */
    boolean deleteRoomType(Integer roomTypeId,String deleteImagePath);

    /**
     * 将房型集合添加至redis缓存中
     * @return
     */
    public String findRoomTypeByRedis();

    /**
     * 根据房型id查询详情
     * @param id
     * @return
     */
    RoomType findRoomTypeById(Integer id);
}
